addLog

suspend fun addLog(branch: ChatBranch, messageList: List<ChatMessage>)

Adds a new chat log to the Firestore database.

Parameters

branch

The chat branch associated with the log.

messageList

The list of user messages for this chat log.


suspend fun addLog(log: ChatLog)

Adds a chat log to Firestore. If the log does not have an ID, the operation is skipped.

Parameters

log

The chat log to be added.